<!doctype html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>Admin Panel</title>
    <link href="style.css" type="text/css" rel="stylesheet"/>
</head>
<body id="admin">
<div id="wrapper">
    <?php
    session_start();
    if (isset($_SESSION['name'])) {
        echo('<h1>Welcome to the admin panel, ' . $_SESSION['name'] . '</h1>');
    } else {
        header('Location: tutorial.php');
    }
    ?>
    <p><a href="logout.php">Logout</a></p>
</div>
</body>
</html>